package com.ce.pms.system.renovation.model;

import com.ce.pms.common.model.SysInfo;
import com.sitechasia.webx.core.model.IDomainObject;
import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="RM_VIOLATION_CATEGORY")
public class ViolationCategoryDO
  implements IDomainObject
{
  private static final long serialVersionUID = 1287704043L;

  @Id
  @GeneratedValue
  @Column(name="CATEGORY_ID")
  private Long keyword;

  @Column(name="NAME", length=40)
  private String name;

  @Column(name="DESCRIPTION", length=100)
  private String description;

  @Column(name="STATUS", length=1)
  private String status;

  @Column(name="SORT_NUMBER")
  private Long sortNumber;

  @Embedded
  @AttributeOverride(name="sysDate", column=@Column(name="SYS_DATE"))
  private SysInfo sysInfo;

  public ViolationCategoryDO(Long keyword)
  {
    this.keyword = keyword;
  }

  public Long getKeyword() {
    return this.keyword;
  }

  public void setKeyword(Long keyword) {
    this.keyword = keyword;
  }

  public String getName() {
    return this.name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getDescription() {
    return this.description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public String getStatus() {
    return this.status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public Long getSortNumber() {
    return this.sortNumber;
  }

  public void setSortNumber(Long sortNumber) {
    this.sortNumber = sortNumber;
  }

  public SysInfo getSysInfo() {
    return this.sysInfo;
  }

  public void setSysInfo(SysInfo sysInfo) {
    this.sysInfo = sysInfo;
  }
}